package com.jiuli.liping.dao;

import com.jiuli.liping.vo.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Author zyl
 * Date  2020-03-28
 */
@Component
@Mapper
public interface ShoppingCartDao {

    public ShoppingCart get(String id);

    public List<ShoppingCart> findList(ShoppingCart shoppingCart);

    public List<ShoppingCart> findAllList();

    public int insert(ShoppingCart shoppingCart);

    public int insertBatch(List<ShoppingCart> shoppingCarts);

    public int update(ShoppingCart shoppingCart);

    public int delete(ShoppingCart shoppingCart);

    List<ShoppingCart> findAllCartListByNumber(ShoppingCart shoppingCart);

    int updateNumber(ShoppingCart shoppingCart);

    ShoppingCart getCountByProductNumber(ShoppingCart shoppingCart);

    int updateNumberByUserNum(ShoppingCart shoppingCart);

    int deleteAll(ShoppingCart shoppingCart);

    int getCountSt(ShoppingCart shoppingCart);

    int getCountSt1(ShoppingCart shoppingCart);
}